package com.atguigu.userprofile.dao

import com.atguigu.userprofile.bean.{TaskInfo, TaskTagRule}
import com.atguigu.userprofile.util.MySqlUtil

object TaskTagRuleDao {
  def getTaskTagRuleList(taskId:String):List[TaskTagRule]={
    val sql = s"select tr.*,tag_name as sub_tag_value from task_tag_rule tr,tag_info ti where tr.sub_tag_id=ti.id and tr.id=$taskId"
    val ruleList: List[TaskTagRule] = MySqlUtil.queryList(sql,classOf[TaskTagRule],true)
   ruleList
  }

}
